{% extends 'base_dashboard.html' %} {% block title %}{{ action }} — Online LMS{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ action }}

Fill in the details below to {% if 'Edit' in action %}update this{% else %}create a new{% endif %} course

Back to Courses
{% csrf_token %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %}
{{ error }}
{% endfor %}
{% endif %}
Basic Information
{{ form.title }} {% if form.title.errors %}
{{ form.title.errors|join:", " }}
{% endif %}
{{ form.category }}
Used to group and filter courses.
{{ form.short_description }} {% if form.short_description.errors %}
{{ form.short_description.errors|join:", " }}
{% endif %}
A brief overview shown on course listings.
{{ form.full_description }} {% if form.full_description.errors %}
{{ form.full_description.errors|join:", " }}
{% endif %}
Pricing & Schedule
{{ site_settings.currency_symbol }} {{ form.price }}
{% if form.price.errors %}
{{ form.price.errors|join:", " }}
{% endif %}
Enter 0 for a free course.
{{ form.duration }} {% if form.duration.errors %}
{{ form.duration.errors|join:", " }}
{% endif %}
e.g. “8 weeks” or “40 hours”
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors|join:", " }}
{% endif %}
{{ form.start_date }} {% if form.start_date.errors %}
{{ form.start_date.errors|join:", " }}
{% endif %}
Enrollment opens from this date.
{{ form.end_date }} {% if form.end_date.errors %}
{{ form.end_date.errors|join:", " }}
{% endif %}
Course closes on this date.
Assign Instructors
{{ form.teachers }}
{% if form.teachers.errors %}
{{ form.teachers.errors|join:", " }}
{% endif %}
Hold Ctrl / Cmd to select multiple instructors.
Growth & marketing
{{ form.is_featured }}
{{ form.is_featured.help_text }}
{{ form.enable_free_diagnostic }}
{{ form.enable_free_diagnostic.help_text }}
How it works: Visitors take a short 12-question quiz without logging in, then enter email/WhatsApp to see their score (lead capture). Import & verify questions via Data Manager → Course questions (or Django admin → Course questions → Import). Turn this switch off to hide the button on the course page.
Cancel
Course Thumbnail
{% if form.instance.thumbnail %}
Current thumbnail
Upload a new image to replace.
{% else %}
Preview will appear here
Preview {% endif %} {{ form.thumbnail }} {% if form.thumbnail.errors %}
{{ form.thumbnail.errors|join:", " }}
{% endif %}
Status Guide
Published — Visible to students & open for enrollment.
Draft — Hidden from students. Safe to edit before going live.
Tips
  • Use a clear, keyword-rich title.
  • Short description appears on course cards — keep it under 120 chars.
  • Thumbnail: 16:9 ratio, at least 800×450px.
  • Set status to Draft while building; publish when ready.
{% endblock %} {% block extra_js %} {% endblock %}